<%--
  Created by IntelliJ IDEA.
  User: Slava
  Date: 27.07.2014
  Time: 18:41
  To change this template use File | Settings | File Templates.
--%>
<%@ page import="java.util.List" %>
<%@ page import="com.privatbank.tables.Good" %>

<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Goods List</title>
</head>
<body>
<%
    List<Good> goods;
    goods = (List<Good>) request.getAttribute("goods");
%>
<b>Goods list</b>
<table border=1>
    <tr>
        <th>ID_manufacturer</th>
        <th>Model</th>
        <th>ID_category</th>
        <th>Price</th>
        <th>Description</th>
        <th>Image</th>
        <th>Storage</th>
    </tr>
    <% for (Good good : goods) { %>
    <tr>
        <td><%=good.getIdManufacturer() %>
        <td><%=good.getModel() %>
        <td><%=good.getIdCategory() %>
        <td><%=good.getPrice() %>
        <td><%=good.getDescription() %>
        <td><%=good.getImage() %>
        <td><%=good.getStorage() %>
        </td>
    </tr>
    <% } %>
</table>
</body>
</html>

